@extends("admin.layout.main")

@section("content")
    <style>
    .page-header span{margin-right: 20px}
    </style>
    <!--主页面头部信息-->
    <div class="page-header">
        <h1>
            推荐关系
        </h1>
    </div>
    <div class="page-header">
        <span>推荐人：{{ $info->name }}</span>
        <span>推荐人ID：{{ $info->id }}</span>
        <span>联系电话：{{ $info->mobile }}</span>
        <span>创客类别：@if($info->user_type==1) 创客 @endif @if($info->user_type==2) 城市合伙人 @endif</span>
    </div>
    <!-- /.page-header -->
    <div class="row">
        <div class="col-xs-12">
            <table id="simple-table" class="table  table-bordered table-hover" style="text-align: center;">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>创客昵称</th>
                    <th>手机号码</th>
                    <th>创客类别</th>
                    <th>创业区</th>
                    <th>创新区</th>
                    <th>创客区</th>
                    <th>积分</th>
                    <th>注册币</th>
                    <th>注册时间</th>
                    <th>复消日期</th>
                </tr>
                </thead>

                <tbody>
                @foreach($list as $v)
                    <tr>
                        <td>{{ $v->id }}</td>
                        <td>{{ $v->name }}</td>
                        <td>{{ $v->mobile }}</td>
                        <td>@if($v->user_type==1)创客 @else 城市合伙人@endif</td>
                        <td>{{ $v->entrepreneurship_achievement }}</td>
                        <td>{{ $v->chuangheng_achievement }}</td>
                        <td>{{ $v->director_achievement }}</td>
                        <td>{{ $v->integral }}</td>
                        <td>{{ $v->registered_currency }}</td>
                        <td>{{ $v->created_at }}</td>
                        <td>{{ $v->repeated_consumption_date }}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
            {{ $list->appends($where)->links('admin.layout.page') }}
        </div>
    </div>
@endsection
